/**
 * Cesium - https://github.com/AnalyticalGraphicsInc/cesium
 *
 * Copyright 2011-2017 Cesium Contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Columbus View (Pat. Pend.)
 *
 * Portions licensed separately.
 * See https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md for full licensing details.
 */
define(["./defined-b9ff0e39","./freezeObject-2d5b18ce","./defaultValue-199f5aa8","./RuntimeError-d5522ee3","./when-c208a7cf","./createTaskProcessorWorker","./pako_inflate-31d81bd9"],function(r,e,a,t,f,n,_){"use strict";return n(function(r,e){var a=r.buffer,t=r.width,f=0,n=new DataView(a);f+=Uint32Array.BYTES_PER_ELEMENT;var o=n.getFloat32(f,!0);f+=Float32Array.BYTES_PER_ELEMENT;var E=n.getFloat64(f,!0);f+=Float64Array.BYTES_PER_ELEMENT;var i=new Uint8Array(a,f,a.byteLength-16),u=_.pako.inflate(i),l=t*t,c=new Uint16Array(u.buffer),b=new Float32Array(l),d=0,w=0;for(d=0;d<l;d++){var y=Math.ceil(t-1-d/t)*t+d%t,A=c[d];b[y]=A<0?A:A*E+o}var T=new Float32Array(l);for(d=0;d<t;d++)for(w=0;w<t;w++)T[d*t+w]=b[(t-1-d)*t+w];return e.push(T.buffer),{buffer:T}})});
